import { getDetail } from "@/request/detail_api";
export function useDetailHooks(id) {
    const detail = ref({})
    const route = useRoute();
    const res = getDetail(route.params.id).then(res => {
        detail.value = res.result
    }, err => {
        console.log(err)
    })
    return {detail}
}